python/xc: reinstate original implementation of next_bdf
authorWei Liu <wei.liu2@citrix.com>
Mon, 27 Jul 2015 17:45:08 +0000 (18:45 +0100)
committerIan Campbell <ian.campbell@citrix.com>
Tue, 28 Jul 2015 10:53:29 +0000 (11:53 +0100)
commitec55a3ae01a5be34d9a753781fba41d5930569f0
tree8d407fff99b83329458a8c62cf0fc2a16e302685
parent495ec8973cbc178264696ccd8bd8323c7cd9db5f
python/xc: reinstate original implementation of next_bdf

I missed the fact that next_bdf is used to parsed user supplied
strings when reviewing. The user supplied string is a NULL-terminated
string separated by comma. User can supply several PCI devices in that
string. There is, however, no delimiter for different devices, hence
we can't change the syntax of that string.

This patch reinstate the original implementation of next_bdf to
preserve the original syntax. The last argument for xc_assign_device
is always 0.

Signed-off-by: Wei Liu <wei.liu2@citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
tools/python/xen/lowlevel/xc/xc.c